<template>
  <CommonCard title="今日销售额" value="303,467,99">
    <template #default>
      <div class="compare-wrap">
        <div class="compare">
          <span>日同比</span>
          <span class="common-data">-19.16%</span>
          <span class="decrement"></span>
        </div>
        <div class="compare">
          <span>月同比</span>
          <span class="common-data">56.67%</span>
          <span class="increment"></span>
        </div>
      </div>
    </template>
    <template #footer>
      <span>昨日销售额</span>
      <span class="common-data">￥ 360,000,00</span>
    </template>
  </CommonCard>
</template>

<script lang="ts">
import CommonCard from './CommonCard.vue'
export default {
  name: 'TodaySales',
  components: {
    CommonCard,
  },
}
</script>

<style lang="scss">
.compare-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  .compare {
    display: flex;
    flex: 1;
    align-items: center;
  }
}
</style>
